Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NListBox Class / FillFromArray Method / FillFromArray<TValue>(TValue[],NWidgetFactory<TValue>) Method
The type of the array values.
The values to fill the list box with.
The widget factory to use for creating items content.


In This Topic
    FillFromArray<TValue>(TValue[],NWidgetFactory<TValue>) Method
    In This Topic
    Fills the list box with the values of the specified array. Assigns the corresponding array value to the Tag property of each list box item.
    Syntax
    'Declaration
     
    
    Public Overloads Sub FillFromArray(Of TValue)( _
       ByVal values() As TValue, _
       ByVal widgetFactory As NWidgetFactory(Of TValue) _
    ) 
    'Usage
     
    
    Dim instance As NListBox
    Dim values() As TValue
    Dim widgetFactory As NWidgetFactory(Of TValue)
     
    instance.FillFromArray(Of TValue)(values, widgetFactory)
    public void FillFromArray<TValue>( 
       TValue[] values,
       NWidgetFactory<TValue> widgetFactory
    )

    Parameters

    values
    The values to fill the list box with.
    widgetFactory
    The widget factory to use for creating items content.

    Type Parameters

    TValue
    The type of the array values.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also